from rest_framework import exceptions, status
from rest_framework.views import exception_handler

def custom_exception_handler(exc, context):
    response = exception_handler(exc, context)

    if response is not None:
        exc_class = exc.__class__

        if exc_class in [exceptions.APIException]:
            print(response.status_code)



    return response

